package com.zihan.service;

import com.zihan.domain.dto.UserDTO;
import com.zihan.domain.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zihan.domain.result.PageResult;
import com.zihan.domain.result.Result;
import com.zihan.domain.vo.UserVO;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author zhangzihan
 * @since 2025-10-17
 */
public interface IUserService extends IService<User> {

    Result<PageResult> getList(UserDTO userDTO);

    /**
     * 重置用户密码
     * @param id
     * @return
     */
    Result<String> resetPassword(Long id);

    /**
     * 用户注册
     * @param user
     * @return
     */
    Result<String> register(User user);

    Result<String> updatePassword(UserDTO user);
}
